<include file="Layouts:header"/><!-- BEGIN BODY -->
<body class="page-header-fixed">
<!-- BEGIN HEADER -->
<div class="header navbar navbar-inverse navbar-fixed-top">
    <include file="Layouts:navigator"/>
</div>
<!-- END HEADER --><!-- BEGIN CONTAINER -->
<div class="page-container row-fluid">
    <include file="Layouts:slider"/>
    <!-- BEGIN PAGE -->
    <div class="page-content">
        <include file="Layouts:bread_crumb"/>
        <div class="container-fluid mb-container" style="background-color: #fff;">
            <div class="tab-content">
                <div class="tab-pane  active">
                    <div class="portlet box">
                        <div class="portlet-body">
                            <input type="hidden" id="parentId" value="<?php echo $parentId ?>" />
                            <?php
                            //if ($isIt == true) {
                            ?>
                            <button id="addApiCateBtn" type="button" class="btn blue">
                                添加接口分类
                            </button>
                            <?php
                            //}
                            ?>
                            <div id="sample_2_wrapper" class="dataTables_wrapper form-inline">
                                <table class="table table-striped table-bordered table-hover table-full-width dataTable"
                                       width="100%">
                                    <thead>
                                    <tr>
                                        <th width="8%" style="padding:10px;">接口分类名称</th>
                                        <th width="8%" style="padding:10px;">描述</th>
                                        <th width="8%" style="padding:10px;">操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php
                                        foreach ($list as $v) {
                                    ?>
                                    <tr>
                                        <td>
                                            <a target="_blank" href="/home/api/info?cate_id=<?php echo $v['aid'] ?>">
                                                <?php echo $v['cname']?>
                                            </a>
                                        </td>
                                        <td><?php echo $v['cdesc']; ?></td>
                                        <td>
                                            <input type="hidden" class="cate_id" value="<?php echo $v['aid'] ?>" />
                                            <a href="###" class="btn mini blue editBtn"><i class="icon-edit"></i> 编辑</a>
                                        </td>
                                    </tr>
                                    <?php
                                        }
                                    ?>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- loading start -->
        <div id="loadingBox"
             style="display:none;position: fixed; left: 50%; top: 50%; width: 150px; height: 150px; margin-left: -75px; margin-top: -75px;">
            <img src="/Public/frontapp/media/image/loading-spinner.gif"/>
        </div>
        <!-- loading end -->
        <!-- mask start -->
        <div id="mask" class="modal-backdrop" style="display:none;">
        </div>
        <!-- mask end -->
        <include file="Layouts:add_issue_window"/>
        <include file="Layouts:add_api_cate_window"/>
    </div>
    <include file="Layouts:foot_page"/>
    <script type="text/javascript" src="/Public/frontapp/sea.js">
    </script>
    <script type="text/javascript" src="/Public/frontapp/config/config.js">
    </script>
    <script type="text/javascript" src="/Public/frontapp/lib/seajs-text.js">
    </script>
    <script type="text/javascript">
        seajs.use("/Public/frontapp/src/api/api_index.js?v20151110");
    </script>
</body>
<!-- END BODY -->
</html>
